package com.cap.bts.crmdp.dealer.mars.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cap.bts.framework.common.domain.BaseDomain;

@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name="TL_MARS_CONFIG")
public class MarsConfig  extends BaseDomain implements Serializable{

	private static final long serialVersionUID = 3292243745940975457L;
	
	private Long id;
	
	private String protocol ;
	private String serverDomain ;
	private String serverPort;
	private String userName;
	private String marsServiceName;

	private String pwd;

	private String token;

	private String authMode;
	private String descp;

	public MarsConfig() {
		
	}
	

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	

	@Column(name="PROTOCOL")
	public String getProtocol() {
		return protocol;
	}


	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	@Column(name="SERVER_DOMAIN")
	public String getServerDomain() {
		return serverDomain;
	}


	public void setServerDomain(String serverDomain) {
		this.serverDomain = serverDomain;
	}

	@Column(name="SERVER_PORT")
	public String getServerPort() {
		return serverPort;
	}


	public void setServerPort(String serverPort) {
		this.serverPort = serverPort;
	}

	@Column(name="USER_NAME")
	public String getUserName() {
		return userName;
	}


	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name="MARS_SERVICE_NAME")
	public String getMarsServiceName() {
		return marsServiceName;
	}


	public void setMarsServiceName(String marsServiceName) {
		this.marsServiceName = marsServiceName;
	}

	@Column(name="PWD")
	public String getPwd() {
		return pwd;
	}


	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	@Column(name="TOKEN")
	public String getToken() {
		return token;
	}


	public void setToken(String token) {
		this.token = token;
	}

	@Column(name="AUTH_MODE")
	public String getAuthMode() {
		return authMode;
	}


	public void setAuthMode(String authMode) {
		this.authMode = authMode;
	}


	@Column(name="DESCP")
	public String getDescp() {
		return descp;
	}

	public void setDescp(String descp) {
		this.descp = descp;
	}

	
	
	

}
